package com.aspose.cells;

abstract class zaoj {
   public abstract double b(double var1);

   public abstract double a(double var1);

   public double a(double var1, double var3, int var5, int[] var6) {
      var6[0] = 1;

      for(int var9 = 0; var9 < var5; ++var9) {
         double var7 = var1;
         double var10 = this.a(var1);
         if (Math.abs(var10) < Double.MIN_VALUE) {
            var6[0] = 2;
            return var1;
         }

         var1 -= this.b(var1) / var10;
         if (Math.abs(var1 - var7) <= var3) {
            var6[0] = 0;
            break;
         }
      }

      return var1;
   }
}
